<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Marker Annotation Specification</title>
<style type="text/css">@import url("file:/home/moovida/rcpdevelopment/eclipse/configuration/org.eclipse.osgi/bundles/488/1/.cp/book.css");</style>
<style type="text/css">@import url("file:/home/moovida/rcpdevelopment/eclipse/configuration/org.eclipse.osgi/bundles/505/1/.cp/schema.css");</style>
</HEAD>
<BODY>
<H1 style="text-align:center">Marker Annotation Specification</H1>
<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.ui.editors.markerAnnotationSpecification<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Since: </h6>3.0 (originally named org.eclipse.ui.workbench.texteditor.markerAnnotationSpecification)
<p></p>

<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>This extension point is used to define presentation properties of markers. Extensions provided for this extension point can be accessed using <samp>org.eclipse.ui.texteditor.MarkerAnnotationPreferences</samp>. Use <samp>org.eclipse.ui.texteditor.AnnotationPreferenceLookup</samp> to get the annotation preference for a given annotation.
<p>
Note that an extension will only be returned from <code>MarkerAnnotationPreferences.getAnnotationPreferences</code> (and thus included in the preference pages) if it contains the following four attributes in addition to the required <code>annotationType</code>:
<ul>
 <li><code>colorPreferenceKey</code></li>
 <li><code>colorPreferenceValue</code></li>
 <li><code>overviewRulerPreferenceKey</code></li>
 <li><code>textPreferenceKey</code></li>
</ul>
</p>
<p>
Annotation preference types that extend another annotation preference are allowed to overwrite attributes already defined in a parent preference specification, but these will not be accessible from the preference page.
</p><p></p>
<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
<p></p>
<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.specification">specification</a>+)&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED</p>&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>point</b> - a fully qualified identifier of the target extension point</li>
<li><b>id</b> - an optional identifier of the extension instance</li>
<li><b>name</b> - an optional name of the extension instance</li>
</ul>
<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.specification">specification</a> EMPTY&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST specification</p>
<p class="code SchemaDtdAttlist">annotationType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IDREF #REQUIRED</p><p class="code SchemaDtdAttlist">colorPreferenceKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">overviewRulerPreferenceKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">verticalRulerPreferenceKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">textPreferenceKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">highlightPreferenceKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">colorPreferenceValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">presentationLayer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">overviewRulerPreferenceValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">verticalRulerPreferenceValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">textPreferenceValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">highlightPreferenceValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">contributesToHeader&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">showInNextPrevDropdownToolbarActionKey&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">showInNextPrevDropdownToolbarAction&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">isGoToNextNavigationTargetKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">isGoToNextNavigationTarget&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">isGoToPreviousNavigationTargetKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">isGoToPreviousNavigationTarget&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) </p><p class="code SchemaDtdAttlist">icon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">quickFixIcon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">symbolicIcon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(error|warning|info|task|bookmark) </p><p class="code SchemaDtdAttlist">annotationImageProvider&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">textStylePreferenceKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">textStylePreferenceValue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(BOX|DASHED_BOX|IBEAM|NONE|PROBLEM_UNDERLINE|SQUIGGLES|UNDERLINE) </p><p class="code SchemaDtdAttlist">includeOnPreferencePage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) "true"</p>&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>annotationType</b> - the annotation type</li>
<li><b>colorPreferenceKey</b> - the color preference key must be provided, otherwise this annotation type will not be included in the List returned from MarkerAnnotationPreferences.getAnnotationPreferences() and thus not show in the preferences</li>
<li><b>overviewRulerPreferenceKey</b> - the overview ruler preference key must be provided, otherwise this annotation type will not be included in the List returned from MarkerAnnotationPreferences.getAnnotationPreferences() and thus not show in the preferences</li>
<li><b>verticalRulerPreferenceKey</b> - the preference key for the show in vertical ruler preference.
since: 3.0</li>
<li><b>textPreferenceKey</b> - the text preference key must be provided, otherwise this annotation type will not be included in the List returned from MarkerAnnotationPreferences.getAnnotationPreferences() and thus not show in the preferences</li>
<li><b>label</b> - the label to be used in the UI</li>
<li><b>highlightPreferenceKey</b> - the preference key for highlighting in text.
since: 3.0</li>
<li><b>colorPreferenceValue</b> - the color preference value must be provided, otherwise this annotation type will not be included in the List returned from MarkerAnnotationPreferences.getAnnotationPreferences() and thus not show in the preferences</li>
<li><b>presentationLayer</b> - the default value for the layer in which the marker annotation will be drawn</li>
<li><b>overviewRulerPreferenceValue</b> - the default value telling whether this marker annotation is shown in the overview ruler</li>
<li><b>verticalRulerPreferenceValue</b> - the default value for showing in vertical ruler.
since: 3.0</li>
<li><b>textPreferenceValue</b> - the default value telling whether this marker annotation is shown in the text</li>
<li><b>highlightPreferenceValue</b> - the default value for highlighting in text.
since: 3.0</li>
<li><b>contributesToHeader</b> - the default value telling whether this marker annotation contributes to the overview ruler's header summary</li>
<li><b>showInNextPrevDropdownToolbarActionKey</b> - the preference key for the visibility in the next/previous drop down toolbar action.
since: 3.0</li>
<li><b>showInNextPrevDropdownToolbarAction</b> - the default value for the visibility in the next/previous drop down toolbar action.
since: 3.0</li>
<li><b>isGoToNextNavigationTargetKey</b> - the preference key for go to next navigation enablement.
since: 3.0</li>
<li><b>isGoToNextNavigationTarget</b> - the default value for go to next navigation enablement.
since: 3.0</li>
<li><b>isGoToPreviousNavigationTargetKey</b> - the preference key for go to previous navigation enablement.
since: 3.0</li>
<li><b>isGoToPreviousNavigationTarget</b> - the default value for go to previous navigation enablement.
since: 3.0</li>
<li><b>icon</b> - the path to the icon to be drawn for annotations of this annotation type. This icon will not
                  be used if a Quick Fix is available and the "quickFixIcon" attribute has been specified.</li>
<li><b>quickFixIcon</b> - the path to the quick fix icon to be drawn for annotations that have a quick fix.
since: 3.2</li>
<li><b>symbolicIcon</b> - the symbolic name of the image that should be drawn to represent annotation of this annotation type. The image is only used when there is no vertical ruler icon specified for this annotation type. Possible values are: "error", "warning", "info", "task", "bookmark".</li>
<li><b>annotationImageProvider</b> - the optional annotation image provider that implements <code>org.eclipse.ui.texteditor.IAnnotationImageProvider</code></li>
<li><b>textStylePreferenceKey</b> - the preference key for the text decoration property.
since: 3.0</li>
<li><b>textStylePreferenceValue</b> - the default value for the "show in text" decoration style.
since: 3.0 (DASHED_BOX since 3.3, PROBLEM_UNDERLINE: since 3.4)</li>
<li><b>includeOnPreferencePage</b> - defines whether this annotation type should be configurable via the standard annotation preference page. Default is true.</li>
</ul>
<br><br>
<p class="note SchemaCopyright">
Copyright (c) 2001, 2008 IBM Corporation and others.<br>
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>

</p>
</BODY>
</HTML>
